package org.example.project_end.mapper;

import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.example.project_end.entity.User;

@Mapper
public interface UserMapper {
    @Select("select * from user where username=#{username}")
    public User selectUsername(String username);

    @Insert("insert into user values(#{username},#{password},#{phone},#{email})")
    public int insertUser(String username, String password,String phone, String email);
}
